package top.longmarch.flow.test;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;
import top.longmarch.flow.entity.LiteflowApp;

@Slf4j
@LiteflowComponent(id = "FCmp", name = "FCmp")
public class FCmp extends NodeComponent {

    @Override
    public void process() throws Exception {
        log.info("FCmp executed!");
        LiteflowApp liteflowApp = this.getContextBean(LiteflowApp.class);
        liteflowApp.setId(1L);
        liteflowApp.setAppName("测试");
        liteflowApp.setFilePath("/a/b/c");
        liteflowApp.setRemark("测试APP");
    }

}
